<%-- 
    Document   : LihatPaket
    Created on : 23 Nov 12, 13:32:52
    Author     : SONY
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.bp.Paket" %>
<jsp:useBean id="paket" scope="application" class="com.bp.Paket"/>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Lihat Data Paket </title>
        <body class="backround">
        <style type="text/css">
            .backround{background-image: url("background.jpg");
            }
            .menu-top a{color:darkgray;width:auto;float:left;display:block;
                        text-align:center;
                        padding:6px 0 0;
                        -transition:border linear .2s,color linear .2s;
                        -moz-transition:border linear .2s,color linear .2s;
                        -webkit-transition:border linear .2s,color linear .2s;
                        -o-transition:border linear .2s,color linear .2s;}
            .menu-top a:hover{color:#fff;}
            .hover a:hover{color: #ffffff}
            .timeline-header a
            {padding:5px;color:#ccc;
             -transition:border linear .2s,color linear .2s;
             -moz-transition:border linear .2s,color linear .2s;
             -webkit-transition:border linear .2s,color linear .2s;
             -o-transition:border linear .2s,color linear .2s;}

        </style>

    </body>
    </head>
     <center> <a href="Admin.html"><img src="logo gredy.jpg" width="1350" height="120"/></a></center>
    <body>
        <h3>Data Paket</h3>
        <table border=1>
            <TR>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Id_Paket</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Nama_Paket</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Harga</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Lama</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Lokasi</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Fasilitas</B></FONT></TD>
                <TD><FONT FACE="Verdana" SIZE="3"><B>Tujuan</B></FONT></TD>
            </TR>  
            
            <%
            ArrayList pkt = paket.lihatDataPaket();
            for (int idx = 0; idx < pkt.size(); idx++) {

                Paket product = (Paket) pkt.get(idx);
            %>
            
            <tr>
                <td><%=product.id_paket%></td>
                <td><%=product.nama_paket%></td>
                <td><%=product.harga_paket%></td>
                <td><%=product.lama%></td>
                <td><%=product.lokasi%></td>
                <td><%=product.fasilitas%></td>
                <td><%=product.tujuan%></td>
            </tr>
            <%
            }
            %>            
        </table>
</html>
